package com.thtf;



import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

public class demo {
    public static void main(String[] args) throws ParseException {
        String s = "30:00";
        String res;
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("HH:mm");
        Date date = simpleDateFormat.parse(s);
        long ts = date.getTime();
        res = String.valueOf(ts);
        System.out.println(res);

        long lt = new Long(res);
        Date date1 = new Date(lt);
        res = simpleDateFormat.format(date1);
        System.out.println(res);
    }
}
